Skip to content

fix(desktop): sanitize AppImage env for child processes#2358

Open
Chessing234 wants to merge 1 commit into
block:mainfrom
Chessing234:fix/appimage-child-env
Open

fix(desktop): sanitize AppImage env for child processes#2358
Chessing234 wants to merge 1 commit into
block:mainfrom
Chessing234:fix/appimage-child-env

Conversation

@Chessing234

Copy link
Copy Markdown

Summary

  • AppImage AppRun leaks LD_LIBRARY_PATH / PYTHONHOME / etc. into every child Buzz spawns
  • system git/curl/python then link against older bundled libs and crash (e.g. in-app PR merge)
  • restore ORIGINAL_* when present, otherwise strip $APPDIR entries before spawn (git + agent harness)

Closes #2315

Test plan

  • unit tests for appdir path filtering
  • AppImage on Pop!_OS / Ubuntu noble: git ls-remote https://… from an in-app merge / agent shell succeeds without env -u LD_LIBRARY_PATH

Made with Cursor

Signed-off-by: Taksh <takshkothari09@gmail.com>
@Chessing234
Chessing234 requested a review from a team as a code owner July 22, 2026 11:16
@Chessing234

Copy link
Copy Markdown
Author

strips appimage-bundled lib paths from git and agent child envs so system tools keep working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AppImage leaks bundled library env (LD_LIBRARY_PATH, PYTHONHOME, …) into child processes, breaking system git/curl/python3

1 participant